home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 14 / AMIGAplus Sonderheft 14 (1998)(ICP)(DE)[!].iso / patch / cybergl / install_cybergl < prev    next >
Text File  |  1997-03-31  |  8KB  |  189 lines

  1. ;********************************************************************************
  2. ;     ______        __                  ______ __
  3. ;    / __  /       / /                 / __  // /
  4. ;   / /  -'__  __ / /___ ______ _____ / /_ -'/ /
  5. ;  / /     \ \/ // __  // ____// .__// // \ / /
  6. ; / /___    \  // /_/ // __/_ / /   / /_/ // /___
  7. ; \____/    / //_____//_____//_/   /_____//_____/
  8. ;
  9. ; $VER: CyberGL_Installer 0.58 (April-01-1997) 
  10. ; Installer by Robert C. Reiswig ©1996-1997 
  11. ; CyberGL @1996-1997 by phase5 digital products
  12. ;
  13. ; If you wish to use any part of this installer you must ask. May not be 
  14. ; integrated/placed into any other package! Changes, suggestions or problems:
  15. ; vgr@best.com
  16. ;********************************************************************************
  17.  
  18. (set vernum1 (getversion "cybergl.library.040"))
  19. (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  20. (set cyberglver (cat ver1 "." rev1))
  21. (set where "ram:")
  22.  
  23.  
  24. ;********************************************************************************
  25. ; Set Defaults Strings (English)
  26. ;********************************************************************************
  27. (if (= ver1 0) (set cyberglver ""))
  28. (set #about (cat "\n\n\nWelcome to CyberGL\n\n©1996-1997 by phase5 digital products\n\n[ cybergl.library = " cyberglver " ]\n\nCurrently most everything is in German.") )
  29. (set #needfpu "\n\nCyberGL must have a FPU (Floating Point Unit) to work. The installer has not found a FPU _or_ you are running an older version of the installer that does not have the FPU check option.\n\nIf you have a FPU please press 'Proceed'.")
  30.  
  31. (set #todo-prompt "\nWhat would you like to do?\n")
  32. (set #updatelibs " Update CyberGL libs")
  33. (set #copyexamp " Copy CyberGL demos/examples") 
  34. (set #installobj " Copy Objects & Reflect")
  35. (set #wheredemos "Where would you like to install the selected options? A directory called 'CyberGL' will be created there.")
  36.  
  37. (set #askcpu "\nWhat CPU does the machine have that you are installing CyberGL on? The installer has found:\n")
  38. (set #wherelibs "Where do you wish to install the CyberGL library? The default is 'SYS:Libs'")
  39. (set #byebye (cat "\nCyberGL Install Complete!\n\n" ))
  40.  
  41.  
  42.  
  43. ;*********************************************************************************
  44. ; German Strings
  45. ;*********************************************************************************
  46. (if (= @language "deutsch")
  47. (
  48. (set #yes "Ja")
  49. (set #about (cat "\n\n\n\nWillkommen zur CyberGL Installation\n\n©1996-1997 phase5 digital products\n\n[ cybergl.library = " cyberglver " ]\n\n.") )
  50. (set #needfpu "\n\nCyberGL benötigt eine FPU (Fließkomma Prozessor). Das Installationsprogramm fand allerding keine _oder_ Sie benutzen eine alte Version des Installationsprogramms, das die FPU Überprüfung nicht ermöglicht.\n\nWenn Ihr Rechner eine FPU besitzt, drücken Sie 'Weiter'.")
  51.  
  52. (set #todo-prompt "\nWas wollen Sie erledigen?\n")
  53. (set #updatelibs " Erneuere CyberGL Bibliotheken")
  54. (set #copyexamp " CyberGL Demos/Beispiele kopieren") 
  55. (set #installobj " Objekte & Reflection Maps kopieren")
  56. (set #wheredemos "Wohin wollen Sie die angewählten Optionen installieren? Ein Verzeichnis 'CyberGL' wird dort erzeugt.")
  57.  
  58. (set #askcpu "\nWelcher Prozessor ist in Ihrem Rechner, auf dem Sie CyberGL nutzen wollen, installiert? Das Installationsprogramm fand:\n")
  59. (set #wherelibs "Wohin wollen Sie die CyberGL Bibliotheken kopieren? Standard ist 'SYS:Libs'")
  60. (set #byebye (cat "\nCyberGL Installation ist nun vollendet!\n\n" ))
  61.  
  62. )
  63. )
  64.  
  65. ;*********************************************************************************
  66. ; Welcome Message
  67. ;*********************************************************************************
  68. (message #about)
  69. (welcome)
  70.  
  71. (set fpu (database "fpu"))
  72. (if (= fpu "NOFPU") (message #needfpu))
  73.  
  74. ;*********************************************************************************
  75. ; Ask what to do
  76. ;*********************************************************************************
  77. (if (exists ("libs:cybergl.library")) (set whattodo 1) (set whattodo 15) )
  78.  
  79. (set ToDo (askoptions (choices  #updatelibs #copyexamp #installobj) 
  80.                       (prompt #todo-prompt)
  81.                       (help #todo-prompt)
  82.                       (default whattodo)
  83.           )
  84.  
  85.  
  86. (if (IN ToDo 0) 
  87. (  
  88. ;********************************************************************
  89. ; Double Check on the CPU
  90. ;********************************************************************
  91. (set cpu (database "cpu"))
  92. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0))
  93. (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0))
  94. (if (= cpu 68040) (set #cpu 1)) 
  95.  
  96. (if (= @installer-version 0)
  97.   (if (> (exists ("libs:68060.library")) 0) (set #cpu 2) )
  98.   (if (= cpu 68060) (set #cpu 2))
  99. )
  100.  
  101. (set cpuPick (askchoice (choices "68020 or 68030" "68040" "68060")
  102.             (prompt #askcpu)
  103.                     (help   #askcpu)
  104.                   (default #cpu)
  105.       )
  106. )
  107.  
  108. ;*********************************************************************************
  109. ; Ask where & Copy lib                                                           
  110. ;*********************************************************************************
  111. (set wherelibs   (askdir (prompt #wherelibs)
  112.              (help   #wherelibs)
  113.                   (default "SYS:libs")
  114.          )
  115. )
  116.  
  117. (if (= cpuPick 0) (set cpuadd ".030")) 
  118. (if (= cpuPick 1) (set cpuadd ".040"))
  119. (if (= cpuPick 2) (set cpuadd ".060"))
  120.  
  121. (set #untempdirlib "")
  122.  
  123. (set vernum1 (getversion (tackon wherelibs "cybergl.library") ))
  124. (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  125. (set cyberglver (cat ver1 "." rev1))
  126.  
  127. (if (= "41.2" cyberglver) (delete (tackon wherelibs "cybergl.library")) )
  128.  
  129. (if (exists (tackon #untempdirlib (cat "cybergl.library" cpuadd)) )
  130.   (copylib (source (tackon #untempdirlib (cat "cybergl.library" cpuadd))) (dest wherelibs) (newname "cybergl.library") (optional "nofail") ) 
  131. )
  132.  
  133.  
  134. ); End todo 0
  135. ); End todo 0
  136.  
  137. ;*********************************************************************************
  138. ; Ask where to put demos                                                           
  139. ;*********************************************************************************
  140. (if (OR (IN ToDo 1) (IN ToDo 2))
  141.  (
  142.    (set where   (askdir (prompt #wheredemos)
  143.                     (help   #wheredemos)
  144.                  (default "RAM:")
  145.         )
  146.    )
  147.  )
  148. )
  149.  
  150. ;********************************************************************
  151. ; Copy Demos if wanted
  152. ;********************************************************************
  153. (if (IN ToDo 1) 
  154.  (  
  155.   (if (< (exists (tackon where "CyberGL")) 2) (makedir (tackon where "CyberGL") (infos)) )
  156.   (if (< (exists (tackon where "CyberGL/Examples")) 2) (makedir (tackon where "CyberGL/Examples") (infos)) )
  157.   (copyfiles (source "examples")  (dest (tackon where "CyberGL/Examples")) (all) (infos) (optional "nofail")) 
  158.  )
  159. )
  160.  
  161. ;********************************************************************
  162. ; Copy objects & refelect if wanted
  163. ;********************************************************************
  164. (if (IN ToDo 2) 
  165.  (  
  166.   (if (< (exists (tackon where "CyberGL")) 2) (makedir (tackon where "CyberGL") (infos)) )
  167.   (if (< (exists (tackon where "CyberGL/Objects")) 2) (makedir (tackon where "CyberGL/Objects") (infos)) )
  168.   (copyfiles (source "Objects")  (dest (tackon where "CyberGL/Objects")) (all) (infos) (optional "nofail")) 
  169.   (if (< (exists (tackon where "CyberGL/Reflect")) 2) (makedir (tackon where "CyberGL/Reflect") (infos)) )
  170.   (copyfiles (source "Reflect")  (dest (tackon where "CyberGL/Reflect")) (all) (infos) (optional "nofail")) 
  171.  )
  172. )
  173.  
  174. ;*********************************************************************************
  175. ; Exit                                                           
  176. ;*********************************************************************************
  177. (set @default-dest (tackon where "CyberGL"))
  178.  
  179. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  180. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  181.  
  182. (if (= @language "deutsch")  (set fileread "Liesmich.txt")   (set fileread "Readme.txt")  )
  183. ;;(run (cat "run " #mpath "/multiview " fileread) )
  184. (run (cat  #mpath "/multiview " fileread) )
  185. (run (cat "run " #mpath "/multiview Changes.txt") )
  186.  
  187. (exi